 //
//  CTVHTTPMediaDownload.m
//  Channltv
//
//  Created by Bruno Keymolen on 29/08/07.
//  Copyright 2007 channl.tv. All rights reserved.
//

#import "CTVMediaDownload.h"

@implementation CTVMediaDownload

-(id)initWithClip:(CTVClip*)clip andMediaReply:(CTVMediaDownloadReply*)mediaReply{
	[super init];
	
	m_clip = clip;
	[m_clip retain];
	
	m_mediaReply = mediaReply;
	
	m_downloadUpdates = [[NSMutableArray alloc] init];
	
	return self;
}


-(void)dealloc{
	[m_downloadUpdates release];
	[m_clip release];
	
	[super dealloc];
}


-(void)addDownloadUpdate:(CTVMediaDownloadUpdate*)update{
	if( [m_downloadUpdates containsObject:update] == FALSE){
		[m_downloadUpdates addObject:update];
	}
}


-(void)removeDownloadUpdate:(CTVMediaDownloadUpdate*)update{
	[m_downloadUpdates removeObject:update];
}

//
//-(int)httpStatusCode{
//	return 0;
//}
//
//-(NSString*)urlString{
//	return nil;
//}


@end